<div class="col-lg-12">
	<!--当前位置 start-->
	<div class="row">
		<div class="col-lg-12">
			<ol class="breadcrumb">
				<li><a><i class="fa fa-home mrg-r-sm"></i>首页</a>
				</li>
				<li class="active"><span>服务方案制定</span>
				</li>
			</ol>
		</div>
	</div>
	<!--当前位置 end-->
	<!--代码写在这里-->
	<div class="row">

		<div class="col-lg-12">
			<div class="main-box">
				<header class="main-box-header clearfix">
					<h2>发布订单</h2>
				</header>
				<div class="main-box-body clearfix">
					<form class="form-horizontal" role="form">
						<div class="form-group">
							<label class="col-lg-2 control-label">联系人姓名</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" id="name" ng-model="order.name"  placeholder="请输入联系人姓名">
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">联系电话</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" id="phone" ng-model="order.phone" placeholder="请输入联系电话">
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">联系地址</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" id="address" ng-model="order.address" placeholder="请输入联系地址">
							</div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">预约时间</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" id="time" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"  ng-model="order.time"  placeholder="请输入预约时间">
							</div>
							
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">订单详情</label>
							<div class="col-lg-6">
								<input type="text" class="form-control" id="detail" ng-model="order.detail" placeholder="请输入订单详情">
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-lg-2 control-label">选择服务类型</label>
							<div class="col-lg-2">
						        <select class="form-control"  ng-model="order.serviceType1" ng-change="getserviceType2(order.serviceType1.code)" ng-options=" service1 as service1.title for service1 in serviceList1" >
									<option value="">请选择服务项目</option>
								</select>
					        </div>
					        <div class="col-lg-2">
						        <select class="form-control"  ng-model="order.serviceType2"  ng-change="getserviceType3(order.serviceType2.code)"  ng-options=" service2 as service2.title for service2 in serviceList2" >
									<option value="">请选择服务项目</option>
								</select>
					        </div>
					     	<div class="col-lg-2">
						        <select class="form-control"  ng-model="order.serviceType3" ng-change="getFilterCompany(order.serviceType3)"   ng-options=" service3 as service3.title for service3 in serviceList3" >
									<option value="" >请选择服务项目</option>
								</select>
					        </div>
						</div>
						<div class="form-group">
							<label class="col-lg-2 control-label">是否试工</label>
							<div class="col-lg-6">
								<div class="checkbox-nice checkbox-inline"  >
									<input id="checkbox-in3-123456" type="checkbox"  ng-true-value="1"   ng-false-value="0"  ng-model="order.is_trial">
									<label for="checkbox-in3-123456">
										是
									</label>
								</div>
								
							</div>
						</div>

						<div class="form-group" ng-if="managerType !== 'admin'">
							<label class="col-lg-2 control-label">选择受理企业</label>
							<div class="col-lg-6">
								<select class="form-control"  ng-model="order.acceptType" >
									<option value="">放入抢单池</option>
									<option value="self">自己受理</option>
								</select>
							</div>
						</div>
						<div class="form-group" ng-if="managerType === 'admin'">
                            <label class="col-lg-2 control-label">选择受理企业</label>
                            <div class="col-lg-6">
                                <select class="form-control" ng-model="order.selected_company"
                                        ng-options="company as company.name for company in companyList">
                                    <option value="">-请选择受理企业-</option>
                                </select>
                            </div>
                        </div>
						<div class="form-group">
							<div class="col-lg-offset-2 col-lg-6">
								<input type="hidden" value="order.fx" ng-init="order.fx=1" />
								<a class="btn btn-success" id="add-order" ng-click="edit(order)">确定</a>
								<a class="btn btn-danger" href="#/order">取消</a>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
